module.exports = {
  // https://vuepress.vuejs.org/zh/config/#%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE
  // 需要配置base
  base: '/yanbin-note/',
  locales: {
    '/': {
      lang: 'zh-CN', // 将会被设置为 <html> 的 lang 属性
    },
  },
  title: 'NoteYan',
  description: 'Web development, Frontend, JavaScript',
  head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
  themeConfig: {
    nav: [
      { text: 'HTML', link: '/html/' },
      { text: 'CSS', link: '/css/' },
      { text: 'JavaScript', link: '/javascript/' },
      { text: 'Vue', link: '/vue/' },
      {
        text: 'More',
        items: [
          { text: 'TypeScript', link: '/TypeScript/' },
          { text: 'NodeJS', link: '/NodeJS/' },
          {
            text: '前端工程化',
            items: [
              { text: 'webpack', link: '/front-engineering/webpack/' },
              {
                text: 'Git和GitHub',
                link: '/front-engineering/git-and-github/',
              },
            ],
          },
          {
            text: '数据可视化',
            items: [{ text: 'Canvas', link: '/viewData/Canvas/' }],
          },
          {
            text: '数据请求',
            items: [
              {
                text: 'HTTP/AJAX/Fetch/Axios',
                link: '/dataRequest/HTTP-AJAX-Fetch-Axios/',
              },
            ],
          },
          // {
          //   text: '库',
          //   items: [
          //     { text: 'jQuery', link: '/library/jQuery/' },
          //     { text: 'Bootstrap', link: '/library/Bootstrap/' },
          //     { text: 'Lodash', link: '/library/Lodash/' },
          //     { text: 'Dayjs', link: '/library/Dayjs/' },
          //     { text: 'Mockjs', link: '/library/Mockjs/' },
          //     { text: 'inflection', link: '/library/inflection/' },
          //   ],
          // },
        ],
      },
      {
        text: 'ContactMe',
        link: 'mailto:yanbinwork@163.com',
        target: '_blank',
      },
    ],
    sidebar: 'auto',
  },
}
